﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using XingFuStudio.Pioneer.Net;
using XingFuStudio.Pioneer.Entity;

namespace XingFuStudio.Pioneer.Container.Interface {
    /// <summary>
    /// 各模块应用接口
    /// </summary>
    public interface IApplication {

        /// <summary>
        /// 初始化
        /// </summary>
        /// <param name="appName">应用名称</param>
        void Initialize(string appName);

        /// <summary>
        /// 执行全部帐户的操作
        /// </summary>
        /// <param name="accounts">帐户集合</param>
        void Run(List<AccountInfo> accounts);

        /// <summary>
        /// 暂停
        /// </summary>
        void Pause();

        /// <summary>
        /// 停止
        /// </summary>
        void Stop();
    }
}
